package cn.wolfcode.crm.query;

import cn.wolfcode.crm.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class ClientQueryObject extends QueryObject{
    private Long status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
    private String idNo;
    private String tel;
    private String keyword;
    private String chargeUserName;

    public Date getEndTime(){
        return DateUtil.getEndDate(endTime);
    }
}
